import { getList } from '../../api/list'
export default {
  namespaced: true,
  state: {
   list:{}
    },
  mutations: {
    updateList(state,payload){
      state.data = payload
    }
  },
  actions: {
     async getListAll(context,payload){
      // console.log(121212);
     const res = await getList(payload)
     console.log(res);
      if(res.errno === 0){
        context.commit('updateList',res.data.list)
      }
    }
  },
  getters: {}
}
